"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Md5Helper = void 0;
const DateUtil_1 = require("./DateUtil");
const md5 = require('./md5');
// const md5 = require('md5');
class Md5Helper {
    static init(key = "jhao") {
        this.Private_Key = key;
    }
    static getMd5Default(str) {
        let md5Key = md5(str);
        // Logger.log("getMd5Default=====", md5Key);
        return md5Key;
    }
    static getMd5_encrypt(str) {
        let md5Key = md5("{" + str + this.Private_Key + "}");
        return md5Key;
    }
    static createToken(userName) {
        let token = this.getMd5_encrypt(userName + DateUtil_1.default.now());
        return token;
    }
}
exports.Md5Helper = Md5Helper;
Md5Helper.Private_Key = "jhao";
